﻿using System.ComponentModel.DataAnnotations;

namespace PesticideManage.API.Services.JWT;

public class AuthTokenDTO
{
    /// <summary>
    /// 网页授权接口调用凭证,注意：此access_token与基础支持的access_token不同
    /// </summary>
    //[JsonPropertyName("access_token")]
    [StringLength(1024)]
    public string? AccessToken { get; set; }

    /// <summary>
    /// 用户刷新access_token
    /// </summary>
    //[JsonPropertyName("refresh_token")]
    public string? RefreshToken { get; set; }
    /// <summary>
    /// access_token接口调用凭证超时时间，单位（秒）
    /// </summary>
    //[JsonPropertyName("expires_in")]
    public int ExpiresIn { get; set; }

    public DateTime CreateTime { get; set; } = DateTime.Now;
}
